# -*- coding: utf-8 -*-

###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc
import wx.grid

###########################################################################
## Class MyFrame1
###########################################################################

class MyFrame1 ( wx.Frame ):

	def __init__( self, parent ):
		wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.Size( 800,600 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )

		self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )

		self.m_statusBar1 = self.CreateStatusBar( 1, wx.STB_SIZEGRIP, wx.ID_ANY )

		self.Centre( wx.BOTH )

	def __del__( self ):
		pass


###########################################################################
## Class MyPanel1
###########################################################################

class MyPanel1 ( wx.Panel ):

	def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.Size( 800,600 ), style = wx.TAB_TRAVERSAL, name = wx.EmptyString ):
		wx.Panel.__init__ ( self, parent, id = id, pos = pos, size = size, style = style, name = name )

		bSizer1 = wx.BoxSizer( wx.VERTICAL )

		self.m_grid1 = wx.grid.Grid( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, 0 )

		# Grid
		self.m_grid1.CreateGrid( 10, 6 )
		self.m_grid1.EnableEditing( True )
		self.m_grid1.EnableGridLines( True )
		self.m_grid1.EnableDragGridSize( False )
		self.m_grid1.SetMargins( 0, 0 )

		# Columns
		self.m_grid1.EnableDragColMove( False )
		self.m_grid1.EnableDragColSize( True )
		self.m_grid1.SetColLabelSize( 30 )
		self.m_grid1.SetColLabelAlignment( wx.ALIGN_CENTER, wx.ALIGN_CENTER )

		# Rows
		self.m_grid1.EnableDragRowSize( True )
		self.m_grid1.SetRowLabelSize( 80 )
		self.m_grid1.SetRowLabelAlignment( wx.ALIGN_CENTER, wx.ALIGN_CENTER )

		# Label Appearance

		# Cell Defaults
		self.m_grid1.SetDefaultCellAlignment( wx.ALIGN_LEFT, wx.ALIGN_TOP )
		bSizer1.Add( self.m_grid1, 1, wx.ALL|wx.EXPAND, 5 )

		bSizer3 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_button1 = wx.Button( self, wx.ID_ANY, u"刷新", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer3.Add( self.m_button1, 0, wx.ALL, 5 )

		self.m_button41 = wx.Button( self, wx.ID_ANY, u"总分最高", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer3.Add( self.m_button41, 0, wx.ALL, 5 )

		self.m_button5 = wx.Button( self, wx.ID_ANY, u"操作最高", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer3.Add( self.m_button5, 0, wx.ALL, 5 )

		self.m_button6 = wx.Button( self, wx.ID_ANY, u"最后一次", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer3.Add( self.m_button6, 0, wx.ALL, 5 )

		self.m_button7 = wx.Button( self, wx.ID_ANY, u"显示所有", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer3.Add( self.m_button7, 0, wx.ALL, 5 )

		self.m_button2 = wx.Button( self, wx.ID_ANY, u"导出", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer3.Add( self.m_button2, 0, wx.ALL, 5 )

		self.m_button4 = wx.Button( self, wx.ID_ANY, u"退出", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer3.Add( self.m_button4, 0, wx.ALL, 5 )

		m_choice1Choices = [ u"95", u"96", u"97", u"98", u"99", u"100", u"7", wx.EmptyString ]
		self.m_choice1 = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choice1Choices, 0 )
		self.m_choice1.SetSelection( 0 )
		bSizer3.Add( self.m_choice1, 0, wx.ALL, 5 )


		bSizer1.Add( bSizer3, 0, wx.EXPAND, 5 )


		self.SetSizer( bSizer1 )
		self.Layout()

		# Connect Events
		self.m_grid1.Bind( wx.grid.EVT_GRID_CELL_LEFT_CLICK, self.m_grid1OnGridCellLeftClick )
		self.m_grid1.Bind( wx.grid.EVT_GRID_CELL_LEFT_DCLICK, self.m_grid1OnGridCellLeftDClick )
		self.m_grid1.Bind( wx.grid.EVT_GRID_CELL_RIGHT_CLICK, self.m_grid1OnGridCellRightClick )
		self.m_grid1.Bind( wx.grid.EVT_GRID_LABEL_LEFT_CLICK, self.m_grid1OnGridLabelLeftClick )
		self.m_grid1.Bind( wx.grid.EVT_GRID_RANGE_SELECT, self.te )
		self.m_button1.Bind( wx.EVT_BUTTON, self.OnRefresh )
		self.m_button41.Bind( wx.EVT_BUTTON, self.MaxTotalscore )
		self.m_button5.Bind( wx.EVT_BUTTON, self.MaxOperationscore )
		self.m_button6.Bind( wx.EVT_BUTTON, self.LastTime )
		self.m_button7.Bind( wx.EVT_BUTTON, self.AllList )
		self.m_button2.Bind( wx.EVT_BUTTON, self.m_button2OnButtonClick )
		self.m_button4.Bind( wx.EVT_BUTTON, self.OnExit )
		self.m_choice1.Bind( wx.EVT_CHOICE, self.Onchoiced )

	def __del__( self ):
		pass


	# Virtual event handlers, override them in your derived class
	def m_grid1OnGridCellLeftClick( self, event ):
		event.Skip()

	def m_grid1OnGridCellLeftDClick( self, event ):
		event.Skip()

	def m_grid1OnGridCellRightClick( self, event ):
		event.Skip()

	def m_grid1OnGridLabelLeftClick( self, event ):
		event.Skip()

	def te( self, event ):
		event.Skip()

	def OnRefresh( self, event ):
		event.Skip()

	def MaxTotalscore( self, event ):
		event.Skip()

	def MaxOperationscore( self, event ):
		event.Skip()

	def LastTime( self, event ):
		event.Skip()

	def AllList( self, event ):
		event.Skip()

	def m_button2OnButtonClick( self, event ):
		event.Skip()

	def OnExit( self, event ):
		event.Skip()

	def Onchoiced( self, event ):
		event.Skip()


